﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ChiTietSanPham.aspx.cs" Inherits="ChiTietSanPham" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript" src="jquery.simplyscroll-1.0.4/jquery.simplyscroll-1.0.4.min.js"></script>
<link rel="stylesheet" href="jquery.simplyscroll-1.0.4/jquery.simplyscroll-1.0.4.css" media="all" type="text/css">
  <script type="text/javascript">
      (function ($) {
          $(function () { //on DOM ready
              $("#scroller").simplyScroll({
                  autoMode: 'loop'
              });
          });
      })(jQuery);
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div class="art-post">
                              <div class="art-post-tl"></div>
                              <div class="art-post-tr"></div>
                              <div class="art-post-bl"></div>
                              <div class="art-post-br"></div>
                              <div class="art-post-tc"></div>
                              <div class="art-post-bc"></div>
                              <div class="art-post-cl"></div>
                              <div class="art-post-cr"></div>
                              <div class="art-post-cc"></div>
                              <div class="art-post-body">
                          <div class="art-post-inner art-article">
                                  <tr> <h2 class="art-postheader">Chi tiết sản phẩm</h2> </tr>
                                          <div class="art-postcontent">
                                              
                                              <asp:ListView ID="ListView1" runat="server"
                                                  EnableModelValidation="True" onitemcommand="ListView1_ItemCommand" DataKeyNames="IDTaiLieu,TenTL,DonGia" DataSourceID="SqlDataSource1">
                                            
                                                  <EditItemTemplate>
                                                      <span style="">TenTL:
                                                      <asp:TextBox ID="TenTLTextBox" runat="server" Text='<%# Bind("TenTL") %>' />
                                                      <br />
                                                      TacGia:
                                                      <asp:TextBox ID="TacGiaTextBox" runat="server" Text='<%# Bind("TacGia") %>' />
                                                      <br />
                                                      MoTa:
                                                      <asp:TextBox ID="MoTaTextBox" runat="server" Text='<%# Bind("MoTa") %>' />
                                                      <br />
                                                      HinhAnh:
                                                      <asp:TextBox ID="HinhAnhTextBox" runat="server" Text='<%# Bind("HinhAnh") %>' />
                                                      <br />
                                                      DonGia:
                                                      <asp:TextBox ID="DonGiaTextBox" runat="server" Text='<%# Bind("DonGia") %>' />
                                                      <br />
                                                      <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                                                          Text="Update" />
                                                      <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                                                          Text="Cancel" />
                                                      <br /><br /></span>
                                                  </EditItemTemplate>
                                                  <EmptyDataTemplate>
                                                      
                                                  </EmptyDataTemplate>
                                                  <InsertItemTemplate>
                                                      <span style="">TenTL:
                                                      <asp:TextBox ID="TenTLTextBox" runat="server" Text='<%# Bind("TenTL") %>' />
                                                      <br />TacGia:
                                                      <asp:TextBox ID="TacGiaTextBox" runat="server" Text='<%# Bind("TacGia") %>' />
                                                      <br />MoTa:
                                                      <asp:TextBox ID="MoTaTextBox" runat="server" Text='<%# Bind("MoTa") %>' />
                                                      <br />HinhAnh:
                                                      <asp:TextBox ID="HinhAnhTextBox" runat="server" Text='<%# Bind("HinhAnh") %>' />
                                                      <br />DonGia:
                                                      <asp:TextBox ID="DonGiaTextBox" runat="server" Text='<%# Bind("DonGia") %>' />
                                                      <br />
                                                      <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                                                          Text="Insert" />
                                                      <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                                                          Text="Clear" />
                                                      <br /><br /></span>
                                                  </InsertItemTemplate>
                                                  <ItemTemplate>
                                                    <div>
                                                    <table class = "ct_san_pham">
                                                       <tr>
                                                            <td width="240px" class="trai" >
                                                            <div class="book_border">
                                                                <img class="hinh_sp" src="Image/Sach/<%# Eval("HinhAnh") %>" align="left" width="150px" height="200px"/>
                                                            </div>
                                                            <br />
                                                           
                                                            </td>
                                                            <td class="phai" >
                                                            <div class="ten">
                                                            <h5 style="margin: 5px !important; "><%# Eval("TenTL") %></h5>
                                                            </div>
                                                            <div class="tac_gia">
                                                            <%# Eval("TacGia")%>
                                                            </div>
                                                            <div class="chi_tiet_sp">
                                                            <table class="mo_ta_chi_tiet">
                                                             <tr><td class="trai">Loại tài liệu: </td><td><strong><%# Eval("TenLoaiTL") %> </strong></td></tr>
                                                            <tr><td class="trai">Giá bán: </td><td><strong><%# format_tt(Eval("DonGia").ToString()) %> </strong>VNĐ</td></tr>
                                                            <tr><td class="trai">Năm phát hành: </td><td><strong><%# Eval("NamPhatHanh") %> </strong></td></tr>
                                                            
                                                            <tr><td class="trai">Số lượng: </td><td>
                                                            <asp:TextBox ID="So_luong_tb"  class="sl" runat="server" Text="1"  width="50px" ></asp:TextBox>
                                                            </td></tr>
                                                            <tr><td colspan="2" class="nut"><span class="art-button-wrapper">
                                                            <span class="art-button-l"> </span>
                                                            <span class="art-button-r"> </span>
                                                            <asp:LinkButton class="art-button" ID="LinkButton1" runat="server" CommandName="AddToCard" CommandArgument='<%#Eval("IDTaiLieu") %>' >Mua</asp:LinkButton>
                                                            </span></td></tr>
                                                             </table>
                                                             
                                                            </div>
                                                            </div>

                                                            
                                                            
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                         <td colspan="2" class="mo_ta_sp"><div class="mo_ta_sp"><span><%# Eval("MoTa") %></span></div></td>
                                                        </tr>
                                                       </table>
                                                    </div>
                                                  </ItemTemplate>
                                                  <LayoutTemplate>
                                                     
                                                      <div ID="itemPlaceholderContainer" runat="server" style="">

                                                          <span runat="server" id="itemPlaceholder" />
                                                      </div>
                                                      
                                                  </LayoutTemplate>
                                                  <SelectedItemTemplate>
                                                      <span style="">TenTL:
                                                      <asp:Label ID="TenTLLabel" runat="server" Text='<%# Eval("TenTL") %>' />
                                                      <br />
                                                      TacGia:
                                                      <asp:Label ID="TacGiaLabel" runat="server" Text='<%# Eval("TacGia") %>' />
                                                      <br />
                                                      MoTa:
                                                      <asp:Label ID="MoTaLabel" runat="server" Text='<%# Eval("MoTa") %>' />
                                                      <br />
                                                      HinhAnh:
                                                      <asp:Label ID="HinhAnhLabel" runat="server" Text='<%# Eval("HinhAnh") %>' />
                                                      <br />
                                                      DonGia:
                                                      <asp:Label ID="DonGiaLabel" runat="server" Text='<%# Eval("DonGia") %>' />
                                                      <br />
<br /></span>
                                                  </SelectedItemTemplate>
                                                 
                                              </asp:ListView>
                                              
                                              <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                                  ConnectionString="<%$ ConnectionStrings:ConnectionStringMembership %>" 
                                                SelectCommand="" ></asp:SqlDataSource>
                                              
                                        <!--BEGIN: NUT      
                                        <p>
                                              	<span class="art-button-wrapper">
                                              		<span class="art-button-l"> </span>
                                              		<span class="art-button-r"> </span>
                                              		<a class="art-button" href="javascript:void(0)">Read more...</a>
                                              	</span> 
                                                
                                       </p>
                                              END: NUT-->
                                              <div class="cleared"></div>
                                              <!--BEGIN: Table-->
                                              <!--
                                              <div class="art-content-layout overview-table">
                                              	<div class="art-content-layout-row">
                                              		<div class="art-layout-cell">
                                                    <div class="overview-table-inner">
                                              	      <h4>Mã sản phẩm</h4>
                                              						  <img src="images/01.png" width="55" height="55" alt="an image" class="image" />
                                              						  <p>ABC XYZ</p>
                                                     </div>
                                              		</div>
                                              		<div class="art-layout-cell">
                                                  <div class="overview-table-inner">
                                              		  <h4>Tên sản phẩm</h4>
                                              						  <img src="images/02.png" width="55" height="55" alt="an image" class="image" />
                                              						  <p>AAAAAAAAAAA</p>
                                              				</div>
                                              		</div>
                                              		<div class="art-layout-cell">
                                                  <div class="overview-table-inner">
                                              		  <h4>Ghi chú</h4>
                                              
                                              						  <img src="images/03.png" width="55" height="55" alt="an image" class="image" />
                                              						  <p>OOOOOOOOOOOOO</p>
                                                            </div>
                                              		</div>
                                              	</div>
                                              </div>
                                              -->
                                              <!-- end table -->
                                                  
                                          </div>
                                          <div class="cleared"></div>
                          </div>
                          
                          		<div class="cleared"></div>
                              </div>
                          </div>

    <div class="art-post">
        <div class="art-post-tl">
        </div>
        <div class="art-post-tr">
        </div>
        <div class="art-post-bl">
        </div>
        <div class="art-post-br">
        </div>
        <div class="art-post-tc">
        </div>
        <div class="art-post-bc">
        </div>
        <div class="art-post-cl">
        </div>
        <div class="art-post-cr">
        </div>
        <div class="art-post-cc">
        </div>
        <div class="art-post-body">
            <div class="art-post-inner art-article">
                <h2 class="art-postheader">
                    Sản phẩm cùng loại</h2>
                <div class="art-postcontent" style="height: 190px !important;">
                    <table class="san_pham">
                        <asp:ListView ID="ListView2" runat="server" EnableModelValidation="True">
                         
                            <EditItemTemplate>
                                <span style="">TenTL:
                                    <asp:TextBox ID="TenTLTextBox" runat="server" Text='<%# Bind("TenTL") %>' />
                                    <br />
                                    TacGia:
                                    <asp:TextBox ID="TacGiaTextBox" runat="server" Text='<%# Bind("TacGia") %>' />
                                    <br />
                                    MoTa:
                                    <asp:TextBox ID="MoTaTextBox" runat="server" Text='<%# Bind("MoTa") %>' />
                                    <br />
                                    HinhAnh:
                                    <asp:TextBox ID="HinhAnhTextBox" runat="server" Text='<%# Bind("HinhAnh") %>' />
                                    <br />
                                    DonGia:
                                    <asp:TextBox ID="DonGiaTextBox" runat="server" Text='<%# Bind("DonGia") %>' />
                                    <br />
                                    <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="Update" />
                                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel" />
                                    <br />
                                    <br />
                                </span>
                            </EditItemTemplate>
                            <EmptyDataTemplate>
                                <span>No data was returned.</span>
                            </EmptyDataTemplate>
                            <InsertItemTemplate>
                                <span style="">TenTL:
                                    <asp:TextBox ID="TenTLTextBox" runat="server" Text='<%# Bind("TenTL") %>' />
                                    <br />
                                    TacGia:
                                    <asp:TextBox ID="TacGiaTextBox" runat="server" Text='<%# Bind("TacGia") %>' />
                                    <br />
                                    MoTa:
                                    <asp:TextBox ID="MoTaTextBox" runat="server" Text='<%# Bind("MoTa") %>' />
                                    <br />
                                    HinhAnh:
                                    <asp:TextBox ID="HinhAnhTextBox" runat="server" Text='<%# Bind("HinhAnh") %>' />
                                    <br />
                                    DonGia:
                                    <asp:TextBox ID="DonGiaTextBox" runat="server" Text='<%# Bind("DonGia") %>' />
                                    <br />
                                    <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" />
                                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Clear" />
                                    <br />
                                    <br />
                                </span>
                            </InsertItemTemplate>
                            <ItemTemplate>
                            <li style="height: 300px !important; width: 150px !important;">

                            <div style="float: none">
                                
                               <div><a href="ChiTietSanPham.aspx?ma=<%# Eval("IDTaiLieu") %>"><img class="scroll_img" src="Image/Sach/<%# Eval("HinhAnh") %>" align="left" width="93" height="138" /></a></div>
                                
                             </div>   
                            </li>
                            </ItemTemplate>
                           
                            <LayoutTemplate>
                                <div id="itemPlaceholderContainer" runat="server">
                                    <ul id="scroller">
                                        <span runat="server" id="itemPlaceholder" />
                                    </ul>
                                </div>
                            </LayoutTemplate>
                            <SelectedItemTemplate>
                                <span style="">TenTL:
                                    <asp:Label ID="TenTLLabel" runat="server" Text='<%# Eval("TenTL") %>' />
                                    <br />
                                    TacGia:
                                    <asp:Label ID="TacGiaLabel" runat="server" Text='<%# Eval("TacGia") %>' />
                                    <br />
                                    MoTa:
                                    <asp:Label ID="MoTaLabel" runat="server" Text='<%# Eval("MoTa") %>' />
                                    <br />
                                    HinhAnh:
                                    <asp:Label ID="HinhAnhLabel" runat="server" Text='<%# Eval("HinhAnh") %>' />
                                    <br />
                                    DonGia:
                                    <asp:Label ID="DonGiaLabel" runat="server" Text='<%# Eval("DonGia") %>' />
                                    <br />
                                    <br />
                                </span>
                            </SelectedItemTemplate>
                        </asp:ListView>
                    </table>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringMembership %>"
                        >
                    </asp:SqlDataSource>



                    <div class="cleared">
                    </div>
                </div>
                <div class="cleared">
                </div>
            </div>
            <div class="cleared">
            </div>
        </div>
    </div>
</asp:Content>

